import React from 'react'
import ContactsList from "../../../../../components/ContactsList/ContactsList";
import {connect} from "react-redux";
import {IStore} from "../../../../../redux/store";

interface IProps {
    friendList: Array<any>
}

const UserList = (props: IProps) => {
    return (
        <div>
            <ContactsList List={props.friendList} ListType='friend'/>
        </div>
    )
}

export default connect(
    (state: IStore) => ({friendList: state.friendList})
)(UserList)